package com.zhixin.zhixinmall.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhixin.zhixinmall.entity.pojo.JdGroup;
import com.zhixin.zhixinmall.mapper.JdGroupMapper;
import com.zhixin.zhixinmall.service.JdGroupService;

/**
 * @author cyc
 * @date 2023/10/17 09:16:04
 */

@Service
public class JdGroupServiceImpl extends ServiceImpl<JdGroupMapper, JdGroup> implements JdGroupService {

    @Override
    public JdGroup getGroupByGroupId(Long groupId) {
        return this.getOne(new LambdaQueryWrapper<JdGroup>().eq(JdGroup::getGroupId, groupId));
    }

}
